package com.good.shopping.order.feign;

import com.good.common.base.ServiceConstant;
import com.good.shopping.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author shengren.yan
 * @create 2022-03-16
 */
@FeignClient(value = ServiceConstant.SERVICE_CART_NAME)
public interface CartFeignService {

    /**
     * 查询当前用户购物车选中的商品项
     * @return
     */
    @GetMapping(value = "/currentUserCartItems")
    List<OrderItemVo> getCurrentCartItems();

}


